/*
 * This is the view that the employee sees when they select the Order tab in the application.
 * This panel (a Java JPanel) contains a scrollpane,
 * and that scrollpane contains the MainOrderTable (a Java JTable).
 */
package View;

import java.awt.event.ActionListener;
import javax.swing.*;

public class OrderMainPanel extends JPanel{
    private JButton newOrderB;
    
    //constructor
    public OrderMainPanel(){
        newOrderB = new JButton("New Order");
        
        this.add(newOrderB);        
    }
    
    //If the  newOrderB button is clicked execute a method
    //in the OrderController named actionPerformed
    public void addNewOrderButtonListener(ActionListener listenForNewOrderButton){
        newOrderB.addActionListener(listenForNewOrderButton);
    }

    public JButton getNewOrderB() {
        return newOrderB;
    }

}
